const Net = require('../../common.js')
Page({
  data: {},
  onLoad: function (options) {
    var _this = this
    _this.onPageInfo()
  },
  onJumpAdmirers(e) {
    if (e.currentTarget.id == 1) {
      Net.PageRoter('_Admirers', '', 'nav')
    } else {
      Net.PageRoter('_onUserCore', '', 'nav')
    }
  },
  onPageInfo() {
    Net.link('v1/data', {}, function (res) {
      Net.data({
        info: res.data.data
      })
    }, 'GET')
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {},
  onPullDownRefresh: function () {},
  onReachBottom: function () {},
  onShareAppMessage: function () {}
})